#ifndef FMEM_H
#define FMEM_H
#include <Types.h>

uint32 mfsize;//размер физической памяти во фреймах

#define MB 0x100000
/*
struct acpi_mem_map_s{
	uint32 lostart;
	uint32 histart;
	uint32 lolength;
	uint32 hilength;
	uint32 type;
	uint32 attr;
};
*/

struct acpi_mem_map_s{
	uint64 start;
	uint64 length;
	uint32 type;
	uint32 attr;
};

typedef struct acpi_mem_map_s acpi_mem_map_t;

struct fmem_area{
	uint32 a_start;
	uint32 a_end;
};

struct link_s{
	struct link_s *next;
	struct link_s *prev;
};

typedef struct link_s link_t;

struct frame_s{
	uint32	reserved;
	uint32	flags;
	uint32	order;
	uint32	in_use;
	addr_t	slab;
	link_t	frames;
};

typedef struct frame_s frame_t;

frame_t *frame_map;//адрес карты физической памяти

#endif /* FMEM_H */

